<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3">新增用户</h1>
</div>
<div class="wrapper-md" ng-controller="editemployee">
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-default">
                <div class="panel-heading font-bold">用户 表单</div>
                <div class="panel-body">
                    <form class="bs-example form-horizontal" ng-submit="updateEmployee()">
                        <div class="form-group">
                            <label class="col-lg-2 control-label">登录名：</label>
                            <div class="col-lg-6">
                                <input type="text" class="form-control" placeholder="登录名" required
                                       ng-model="item.username">
                                <span class="help-block m-b-none"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label">密码：</label>
                            <div class="col-lg-6">
                                <button type="button" class="btn m-b-xs btn-sm btn-danger btn-addon" ng-click="reset(item.id)"><i class="glyphicon glyphicon-retweet"></i>重置密码</button>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-lg-2 control-label">昵称：</label>
                            <div class="col-lg-6">
                                <input type="text" class="form-control" placeholder="昵称" required
                                       ng-model="item.nickname">
                                <span class="help-block m-b-none"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label">真实姓名：</label>
                            <div class="col-lg-6">
                                <input type="text" class="form-control" placeholder="真实姓名" required
                                       ng-model="item.realname">
                                <span class="help-block m-b-none"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-2 control-label">联系电话：</label>
                            <div class="col-lg-6">
                                <input type="text" class="form-control" placeholder="联系电话" required
                                       ng-model="item.phone">
                                <span class="help-block m-b-none"></span>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-lg-offset-2 col-lg-10">
                                <button type="submit" class="btn m-b-xs w-xs btn-success"
                                        ng-disabled="formName.inputFieldName.$valid">更新
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
